package com.yundahh.u8c.dao;

import com.yundahh.u8c.config.U8CConfig;
import com.yundahh.u8c.dao.base.U8CBaseDao;
import com.yundahh.u8c.entity.Gxzylx;
import com.yundahh.u8c.entity.Zzfs;
import com.yundahh.u8c.util.HttpUtils;
import com.yundahh.u8c.util.JsonUtils;

import java.io.IOException;

public class GxzylxDao extends U8CBaseDao {
    public GxzylxDao(U8CConfig config) {
        super(config);
        this.appendHeader("custdevpclass","nc.api.mm.pub.develop.GxzylxInsert");
    }

    @Override
    public String getApiUrl() {
        return "";
    }

    public String send(Gxzylx gxzylx) throws IOException {
        String s = HttpUtils.sendPost(config.getServerUrl() + "/u8cloud/api/dev/define", headerMap, "[" + JsonUtils.object2Json(gxzylx)+"]");
        return s;
    }
}
